package dk.iha;

public class SharedPreferences {
	static final String BROADCAST_MESSAGE_SERVICE_STATE_CHANGED = "dk.iha.SERVICE_STATE_CHANGED";
	static final String BROADCAST_MESSAGE_SERVICE_DEBUG_STATE_CHANGED = "dk.iha.DEBUG_STATE_STATE_CHANGED";
	
	static final String ON_SENSOR_COMPLETION = "dk.iha.ON_SENSOR_COMPLETION";
	
	static final String BROADCAST_MESSAGE_TIMEOUT_TOTAL_LOGGING_PERIOD = "dk.iha.TIMEOUT_TOTAL_LOGGING_PERIOD";
	static final String BROADCAST_MESSAGE_TIMEOUT_SAMPLE_INTERVAL_PERIOD = "dk.iha.TIMEOUT_SAMPLE_INTERVAL_PERIOD";
	
	
	static final String EMAIL_ADDRESS_FILE_NAME = "email_address.txt";
	static final String EMAIL_XML_FILE = "email.xml";
	static final String EMAIL_ADDRESS = "dk.iha.sensorlogger@gmail.com";
	static final String EMAIL_PASSWORD = "johnrauhe";
	static final String EMAIL_SUBJECT = "Log for user: ";
	static final String EMAIL_TEXT = "Attached is two CSV files with data - the files can be viewed in Excel";
	static final String FILENAME = "Data.csv";
	static final String RAW_DATA_FILENAME = "raw_accelerometer_data.csv";
	static final boolean DEBUG = false;
	static final long ACCELEROMETER_SAMPLE_PERIOD = 100; //100ms 
	static final String NOT_AVAILABLE = "NA"; 

	//enable the GPS sensor
	static final boolean ENABLE_GPS = true;    
	//enable the Bluetooth device sensor
	static final boolean ENABLE_BTSENSOR = true;    
	
	
	static final long TOTAL_LOGGING_PERIOD 			= 30*60*60*1000;//default: 24 hour
	static final long SAMPLE_INTERVAL_PERIOD 		=    1*60*1000;// ~ 15min
	static final long SAMPLE_PERIOD_GPS			 	=      30*1000;
	static final long SAMPLE_PERIOD_ACCELEROMETER	=      30*1000;
	static final long SAMPLE_PERIOD_BTDEVICE	    =      30*1000;
	//test
//	static final long TOTAL_LOGGING_PERIOD 		 =       10*65*1000;	
//	static final long SAMPLE_INTERVAL_PERIOD 	 =        	65*1000;
//	static final long SAMPLE_PERIOD_GPS			 =          60*1000;
//	static final long SAMPLE_PERIOD_ACCELEROMETER=          60*1000;
	
	//GPS_INTERVAL - GPS runs every GPS_INTERVAL * SAMPLE_INTERVAL_PERIOD => 
	//  if GPS_INTERVAL is 4 then reads will be at time: 0,,,,4,,,,8,,,
	static final long GPS_INTERVAL               =       4; 
}
